package com.pro01.apirednote.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ContentViewMapper {
    @Insert("INSERT IGNORE INTO content_views(user_id, content_id) VALUES(#{userId}, #{contentId})")
    void insertOrIgnoreView(@Param("userId") Long userId, @Param("contentId") Long contentId);
}